///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 26 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "rygui_gen.h"

///////////////////////////////////////////////////////////////////////////

MainWindGen::MainWindGen( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );

	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxHORIZONTAL );

	m_screen = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE );
	m_screen->SetMinSize( wxSize( 800,600 ) );

	bSizer1->Add( m_screen, 0, wxALL, 5 );

	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxVERTICAL );

	bSizer2->SetMinSize( wxSize( 100,100 ) );
	m_btnUp = new wxButton( this, wxID_ANY, wxT("UP"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnUp, 0, wxALL, 5 );

	m_btnLeft = new wxButton( this, wxID_ANY, wxT("LEFT"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnLeft, 0, wxALL, 5 );

	m_btnRight = new wxButton( this, wxID_ANY, wxT("RIGHT"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnRight, 0, wxALL, 5 );

	m_btnDown = new wxButton( this, wxID_ANY, wxT("DOWN"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnDown, 0, wxALL, 5 );

	m_btnFunc1 = new wxButton( this, wxID_ANY, wxT("FUNC1"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc1, 0, wxALL, 5 );

	m_btnFunc2 = new wxButton( this, wxID_ANY, wxT("FUNC2"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc2, 0, wxALL, 5 );

	m_btnFunc3 = new wxButton( this, wxID_ANY, wxT("FUNC3"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc3, 0, wxALL, 5 );

	m_btnFunc4 = new wxButton( this, wxID_ANY, wxT("FUNC4"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc4, 0, wxALL, 5 );

	m_btnFunc5 = new wxButton( this, wxID_ANY, wxT("FUNC5"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc5, 0, wxALL, 5 );

	m_btnFunc6 = new wxButton( this, wxID_ANY, wxT("FUNC6"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_btnFunc6, 0, wxALL, 5 );


	bSizer1->Add( bSizer2, 1, wxALIGN_LEFT|wxEXPAND, 5 );


	this->SetSizer( bSizer1 );
	this->Layout();

	this->Centre( wxBOTH );

	// Connect Events
	this->Connect( wxEVT_CHAR, wxKeyEventHandler( MainWindGen::MainWindGenOnChar ) );
	m_screen->Connect( wxEVT_PAINT, wxPaintEventHandler( MainWindGen::m_screenOnPaint ), NULL, this );
	m_btnUp->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnUPClicked ), NULL, this );
	m_btnLeft->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnLEFTClicked ), NULL, this );
	m_btnRight->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnRIGHTClicked ), NULL, this );
	m_btnDown->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnDOWNClicked ), NULL, this );
	m_btnFunc1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC1Clicked ), NULL, this );
	m_btnFunc2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC2Clicked ), NULL, this );
	m_btnFunc3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC3Clicked ), NULL, this );
	m_btnFunc4->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC4Clicked ), NULL, this );
	m_btnFunc5->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC5Clicked ), NULL, this );
	m_btnFunc6->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC6Clicked ), NULL, this );
}

MainWindGen::~MainWindGen()
{
	// Disconnect Events
	this->Disconnect( wxEVT_CHAR, wxKeyEventHandler( MainWindGen::MainWindGenOnChar ) );
	m_screen->Disconnect( wxEVT_PAINT, wxPaintEventHandler( MainWindGen::m_screenOnPaint ), NULL, this );
	m_btnUp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnUPClicked ), NULL, this );
	m_btnLeft->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnLEFTClicked ), NULL, this );
	m_btnRight->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnRIGHTClicked ), NULL, this );
	m_btnDown->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnDOWNClicked ), NULL, this );
	m_btnFunc1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC1Clicked ), NULL, this );
	m_btnFunc2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC2Clicked ), NULL, this );
	m_btnFunc3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC3Clicked ), NULL, this );
	m_btnFunc4->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC4Clicked ), NULL, this );
	m_btnFunc5->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC5Clicked ), NULL, this );
	m_btnFunc6->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MainWindGen::btnFUNC6Clicked ), NULL, this );

}
